
class CCTextureAtlas : public CCObject
{
    unsigned int getTotalQuads();
    unsigned int getCapacity();

    void setTexture(CCTexture2D* val);
    CCTexture2D* getTexture();

    void setQuads(ccV3F_C4B_T2F_Quad* val);
    ccV3F_C4B_T2F_Quad* getQuads();

    void updateQuad(ccV3F_C4B_T2F_Quad* quad, unsigned int index);
    void insertQuad(ccV3F_C4B_T2F_Quad* quad, unsigned int index);
    void insertQuadFromIndex(unsigned int fromIndex, unsigned int newIndex);
    void removeQuadAtIndex(unsigned int index);
    void removeAllQuads();
    bool resizeCapacity(unsigned int n);
    void drawNumberOfQuads(unsigned int n);
    void drawNumberOfQuads(unsigned int n, unsigned int start);

    void drawQuads();

    static CCTextureAtlas* create(const char* file , unsigned int capacity);
    static CCTextureAtlas* create(CCTexture2D *texture, unsigned int capacity);
};
